export const real_name = {
  pattern: /^[\u4e00-\u9fa5]{1,10}$/g,
  message: '只能输入汉字,最多10个',
};

export const pay_real_name = {
  pattern: /^([\u4e00-\u9fa5]+)[·]?[\u4e00-\u9fa5]+$/,
  // pattern:/^[\u4e00-\u9fa5]+(·[\u4e00-\u9fa5]+)*$/,
  message: '输入的字符必须为汉字，或者“迪丽热巴·迪力木拉提”格式',
};

export const mobile = {
  // pattern: /^1[0-9]{10}$/,
  pattern: /^1[3456789]\d{9}$/,
  message: '手机号格式不正确',
};

export const noSpace = {
  pattern: /^[^\s]*$/,
  message: '不能包含空格',
};

export const moneyReg = {
  pattern:/^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/,
  message: '金额需大于零，且不超过两位小数',
};

export const telMobile = { 
  pattern: /^[0-9]+[0-9-]\d+$/, 
  message: '请正确输入，符号接受数字和-' 
};

export const passWord = {
  pattern: /^(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[!|@|#|$|%|^|&|*]).{8,}$/,
  message: '密码需包含大小写字母，数字和特殊符号三种',
}

export const noZhChinness = { 
  pattern: /^[^\u4e00-\u9fa5]+$/, 
  message: '不允许输入中文'
}